// 顶层的function
// 将一些显示UI隐藏UI的通用函数放到这里面
library UIFunction initializer init

    // 显示商店UI
    function UI_show_shopping takes nothing returns nothing
        local integer ui = StringHash("商店UI")
        local integer i = 0

        call DzFrameShow( LoadInteger(UI_HASH, ui, i), true )
    endfunction
    // 隐藏商店UI
    function UI_hide_shopping takes nothing returns nothing
        local integer ui = StringHash("商店UI")
        local integer i = 0

        call DzFrameShow( LoadInteger(UI_HASH, ui, i), false )
    endfunction

    // 显示准备UI
    function UI_show_ready takes nothing returns nothing
        local integer ui = StringHash("准备UI")
        local integer i = 1

        call DzFrameShow( LoadInteger(UI_HASH, ui, i), true )
    endfunction

    // 隐藏准备UI   
    function UI_hide_ready takes nothing returns nothing
        local integer ui = StringHash("准备UI")
        local integer i = 1

        call DzFrameShow( LoadInteger(UI_HASH, ui, i), false )
    endfunction

    private function init takes nothing returns nothing
        
    endfunction
endlibrary


